<form class="layui-form layui-form-pane" lay-filter="FormSysCodeAdd" action="/sys/code/add">
    <input type="hidden" id="parentId" name="parentId" th:value="${pid}">
    <div class="layui-row p-l-sm m-b-xl">
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input-detail('text','父ID','layui-col-md12',${pid})"></div>
            <div th:replace="common/plugin :: pa-form-input('text','字典定义(*)','codeKey','layui-col-md6',32,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','字典值(*)','codeValue','layui-col-md6',32,'required','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','字典排序(*)','codeSort','layui-col-md6',3,'required|number','')"></div>
        </div>
        <div class="hr-line-dashed m-r m-t"></div>
        <div class="layui-row">
            <div th:replace="common/plugin :: pa-form-input('text','字典描述','codeDesc','layui-col-md6',128,'','')"></div>
            <div th:replace="common/plugin :: pa-form-input('text','字典标签','codeTags','layui-col-md6',128,'','')"></div>
        </div>
    </div>
</form>
<script>
    layui.use('form', function () {
        let form = layui.form;
        form.render();
    });
</script>